﻿using AutoMapper;
using Che.AppService.AppService.Login;
using Che.Domain.Entity.Che.User;
using Che.Domain.repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Che.AppService.AppService.ILogin
{
    public class APPLogin : APPILogin
    {
        private readonly IMapper mapper;
        private readonly ILoginUser iu;

        public APPLogin(IMapper mapper, ILoginUser iu)
        {
            this.mapper = mapper;
            this.iu = iu;
        }
        //登录
        public Task<User> Logins(User users)
        {
             return iu.Logins(users);
        }

        public Task<bool> Register(User user)
        {
            return iu.Register(user);
        }
    }
}
